package com.qmo.edu.base;


public class BaseResponse<T> {
    private int code;         //成功 = 200
    private String message;
    private T result;
    /**
     * error : invalid_grant
     * error_description : 用户名或密码不正确.
     */

    private String error;
    private String error_description;

    /**
     * result : {"success":true,"errorCode":"","errorMsg":""}
     * content : {"token":"ky4NBGVj","type":"parent","pid":1,"pname":""}
     */


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return message;
    }

    public void setMsg(String msg) {
        this.message = msg;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T data) {
        this.result = data;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getError_description() {
        return error_description;
    }

    public void setError_description(String error_description) {
        this.error_description = error_description;
    }
}
